<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * P2pCmsSpecial
 *
 * @ORM\Table(name="p2p_cms_special", indexes={@ORM\Index(name="author", columns={"author"}), @ORM\Index(name="time", columns={"add_time"}), @ORM\Index(name="title", columns={"title"})})
 * @ORM\Entity
 */
class P2pCmsSpecial
{
    /**
     * @var string
     *
     * @ORM\Column(name="title", type="string", length=50, nullable=false)
     */
    private $title;

    /**
     * @var string
     *
     * @ORM\Column(name="keywork", type="string", length=70, nullable=true)
     */
    private $keywork;

    /**
     * @var string
     *
     * @ORM\Column(name="description", type="text", length=65535, nullable=true)
     */
    private $description;

    /**
     * @var string
     *
     * @ORM\Column(name="app_art_contend", type="text", nullable=false)
     */
    private $appArtContend;

    /**
     * @var string
     *
     * @ORM\Column(name="content", type="text", nullable=true)
     */
    private $content;

    /**
     * @var string
     *
     * @ORM\Column(name="author", type="string", length=50, nullable=false)
     */
    private $author;

    /**
     * @var integer
     *
     * @ORM\Column(name="add_time", type="integer", nullable=false)
     */
    private $addTime = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;



    /**
     * Set title
     *
     * @param string $title
     *
     * @return P2pCmsSpecial
     */
    public function setTitle($title)
    {
        $this->title = $title;

        return $this;
    }

    /**
     * Get title
     *
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Set keywork
     *
     * @param string $keywork
     *
     * @return P2pCmsSpecial
     */
    public function setKeywork($keywork)
    {
        $this->keywork = $keywork;

        return $this;
    }

    /**
     * Get keywork
     *
     * @return string
     */
    public function getKeywork()
    {
        return $this->keywork;
    }

    /**
     * Set description
     *
     * @param string $description
     *
     * @return P2pCmsSpecial
     */
    public function setDescription($description)
    {
        $this->description = $description;

        return $this;
    }

    /**
     * Get description
     *
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Set appArtContend
     *
     * @param string $appArtContend
     *
     * @return P2pCmsSpecial
     */
    public function setAppArtContend($appArtContend)
    {
        $this->appArtContend = $appArtContend;

        return $this;
    }

    /**
     * Get appArtContend
     *
     * @return string
     */
    public function getAppArtContend()
    {
        return $this->appArtContend;
    }

    /**
     * Set content
     *
     * @param string $content
     *
     * @return P2pCmsSpecial
     */
    public function setContent($content)
    {
        $this->content = $content;

        return $this;
    }

    /**
     * Get content
     *
     * @return string
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * Set author
     *
     * @param string $author
     *
     * @return P2pCmsSpecial
     */
    public function setAuthor($author)
    {
        $this->author = $author;

        return $this;
    }

    /**
     * Get author
     *
     * @return string
     */
    public function getAuthor()
    {
        return $this->author;
    }

    /**
     * Set addTime
     *
     * @param integer $addTime
     *
     * @return P2pCmsSpecial
     */
    public function setAddTime($addTime)
    {
        $this->addTime = $addTime;

        return $this;
    }

    /**
     * Get addTime
     *
     * @return integer
     */
    public function getAddTime()
    {
        return $this->addTime;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }
}
